{include file="Include/H_ui_head" /}
<article class="page-container">
	<form action="javascript:;" class="form form-horizontal" id="form-member-add">
		<input type="hidden" name="id"  value="{$uid}" />
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>资产类型：</label>
			<div class="radio-box">
				<input name="sex" value="1" type="radio" id="sex-1" >
				<label for="sex-1">销售佣金</label>
			</div>
			<div class="radio-box">
				<input type="radio" value="2" id="sex-2" name="sex">
				<label for="sex-2">广告佣金</label>
			</div>
			<div class="radio-box">
				<input name="sex" value="3" type="radio" id="sex-3" >
				<label for="sex-1">商品积分</label>
			</div>
			<div class="radio-box">
				<input type="radio" value="4" id="sex-4" name="sex" >
				<label for="sex-2">冻结积分</label>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>调整金额：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="number" value="" class="input-text" placeholder="" name="mobile" id="mobile">
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<button class="btn btn-primary radius" onclick="recharge()">提交</button>
			</div>
		</div>
	</form>
</article>

<include file="Include/H_ui_foot" />

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__PUBLIC__/statics/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="__LIB__/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__LIB__/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="/public/statics/layer/layer.js"></script>
<script type="text/javascript">
	function recharge() {
        var uid = $("[name='id']").val();
	    var sex = $("[name='sex']:checked").val();
	    var price = $("#mobile").val();
        $.ajax({
            url: "{:Url('Member/member_recharge')}",
            type: "POST",
            data: {'balance_type':sex,'price':price,'uid':uid},
            success: function (data) {
                if(data.status == 1){
                    layer.msg(data.msg);
                    var index = parent.layer.getFrameIndex(window.name);
                    setTimeout(function(){parent.layer.close(index);}, 1000);
                }else{
                    layer.msg(data.msg);
                }
            }
        });
    }
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
